package com.hns.frame.exception;

/**
 * 自定义异常类
 * 
 * @author:Fisher
 * @version Revision 1.0.0
 * @email:zhuangcaijin@126.com
 */
public class BusinessException extends RuntimeException {
    private static final long serialVersionUID = 1L;
    protected boolean         success          = false; // 错误信息类别
    protected String          msgType          = "2";  // 消息类别
    protected String          msg              = null;  // 错误信息
                                                        
    public BusinessException() {
    }
    
    public BusinessException(String msgType, String msg) {
        this.msgType = msgType;
        this.msg = msg;
    }
    
    public String getMsgType() {
        return msgType;
    }

    public String getMessage() {
        return msg;
    }
    
}
